package cn.xiaobai.utils;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;

/**
 * @Author yangdaji
 * @Date 2023/12/24
 * @PackageName cn.xiaobai
 * @ClassName TaskPool
 */
public class TaskPool {

    public static final ExecutorService executorService = Executors.newFixedThreadPool(10);


    public static Future<?> submit(Runnable task) {
        return executorService.submit(task);
    }

}
